package day12.homework2;

public class Car extends MotoVehicle {
    public static final int CAR_BMW3X_PRICE = 200000;
    public static final String CAR_BMW3X = "宝马三系";
    public static final String CAR_BMW5X = "宝马五系";
    public static final int CAR_BMW5X_PRICE = 400000;
    public int calcPrice() {
        switch (super.getVehicleModel()) {
            case CAR_BMW3X: return CAR_BMW3X_PRICE;
            case CAR_BMW5X: return CAR_BMW5X_PRICE;
        }
        return 0;
    }
}
